﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommandBinding.Model;
using CommandBinding.ViewModel;

namespace CommandBinding
{
    public class BaseViewModel
    {
        private static IModel model;
        private CommandViewModel commandViewModel;

        public BaseViewModel()
        {
            model = new Model.Model();
        }

        public CommandViewModel CommandViewModel
        {
            get
            {
                if (this.commandViewModel == null)
                {
                    this.commandViewModel = new CommandViewModel(model);
                }

                return this.commandViewModel;
            }
        }
    }
}
